package com.obas.events {
   import com.ease.framework.CommandCompletionEvent;
   
   import flash.events.Event;
   
   [Response(name="{RETURN_ID}", type="com.ease.framework.CommandCompletionEvent")]
   public class LoginRequestEvent extends Event {
      public static const REQUEST_ID:String = "LoginRequestEvent_Request";
      public static const RETURN_ID:String = "LoginRequestEvent_Return";
      
      private var _userName:String;
      private var _password:String;
      private var _param:Object;
      
      public function LoginRequestEvent(userName:String, password:String, param:Object = null, type:String = null) {
         var typeId : String = type;
         if( type == null ) {
            typeId = REQUEST_ID;
         }
         super(typeId);
         _userName = userName;
         _password = password;
         _param = param;
      }
      
      public override function clone():Event {
         return new LoginRequestEvent(userName, password, param, type);
      }
      
      public function get userName():String {
         return _userName;
      }

      public function get password():String {
         return _password;
      }

      public function get param():Object {
         return _param;
      }
   }
}